package com.company.project.constants;

import java.io.File;

/**
 * Created by maofn on 2017/3/15.
 */
public class Constants {
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final String DEFAULT_UNAUTH_VIEW = "unAuth";
    public static final String DEFAULT_UNAUTH_MESSAGE = "您没有访问该页面的权限。";

    /** 默认排序字段 */
    public static final String DEFAULT_SORT_FIELD = "createDate";

    /** 默认分隔符 */
    public static final String DEFAULT_SEPARATOR = ",";

    /** 排序方式-页面 */
    public static final String SORT_ORDER_ASC = "asc";

    /** 默认查询条件 */
    public static final String DEFAULT_SEARCH_CONDITION = "deleted";

    /** 排序字段查询运算符 */
    public static final String SORT_FIELD_CONNECTOR_SERVER = ".";

    /** 文件后缀分隔符 */
    public static final char FILE_SUFFIX_SEPARATOR = '.';


    /** BigDecimal默认保留小数点位数 */
    public static final int DEFAUT_BIGDECIMAL_SCALE = 4;

    public static final String UPLOAD_IMAGE_FILE_TYPE = "%.pdf%,%.jpg%,%.gif%,%.bmp%,%.png%%";

    public static final String UPLOAD_EXCEL_FILE_TYPE = "%.xls%,%.xlsx%";

    public static final String ROLE_CODE_ADMIN = "ADMIN";

    public static final String SAVE_IMAGE_FILE_TYPE = ".png";

    //上下架
    public static final String ON_SHELF = "1";

    public static final String OFF_SHELF = "0";

    //基础虚拟路径
    public static final String BASE_FILE_PATH = "d:\\szycfile";

    //临时上传文件路径
    public static final String UPLOAD_PATH = "data" + File.separator + "upload" + File.separator;

    // 建议回复状态
    public static final String COMPLAINTS_REPLY_STATUS = "COMPLAINTS_REPLY_STATUS";
    public static final String COMPLAINTS_NO_REPLY = "0";

    public static final String COMPLAINTS_REPLIED = "1";

    //商品属性code
    public static final String PRODUCT_TYPE = "PRODUCT_TYPE";

    // 动态图文链接维护 - 状态
    public static final String DYNAMIC_MENU_ENABLED = "ENABLED";
    public static final String DYNAMIC_MENU_DISABLED = "DISABLED";

    public static  final String EXCEL_ERROR_MESSAGE="数据异常";
    //商品属性
    public static final String CATEGORY ="1";
    public static final String SMELL_TYPE ="3";
    public static final String LENGTH_TYPE ="4";
    public static final String MAIN_TONE ="5";
    public static final String FOREIGN ="7";
    public static final String BLEAST ="8";
    public static final String SECONDARY_TONE ="10";

    //行业动态-分类
    public static final String INDUSTRY_TRENDS_TYPE = "INDUSTRY_TRENDS_TYPE";

    //服务大厅-分类
    public static final String SERVICE_HALL_TYPE = "SERVICE_HALL_TYPE";

    public static final int BIG_DECIMAL_SCALE_2 = 2;
    public static final int BIG_DECIMAL_SCALE_4 = 4;
    public static final int BIG_DECIMAL_SCALE_7 = 7;

    // 是否
    public static final int YES = 1;
    public static final int NO = 0;
    public static final String Y = "Y";
    public static final String N = "N";
    public static final boolean YES_BOOL = true;
    public static final boolean NO_BOOL = false;
    //零售户
    public static final String USER_TYPE_101 = "101";
    public static final String USER_TYPE_100 = "100";
    // 行业、工业用户
    public static final String USER_TYPE_102 = "102";
    //绑定类型
    public static final String BIND = "BIND";
    public static final String UN_BIND = "UN_BIND";
    //额外加分--特别奖励
    public static final String PLUS_POINT_TYPE = "1";
    //额外加分--excel导入数据
    public static final String EXCEL_IMPORT_TYPE = "-1";

    // 性别
    public static final String MALE = "M";
    public static final String FEMALE = "F";

    public static final String AVERAGE_PRICE_TYPE="平均零售户价格";

    /**
     * 中文字符逗号
     */
    public static final String CHINESE_COMMA = "，";
    /**
     * 大机构
     */
    public static final String BRANCH_TYPE = "ALL";



}
